package com.example.ccsystem.service;

import com.example.ccsystem.entity.Student;
import com.example.ccsystem.entity.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherService {

    /**
     * get the total number of teacher
     * @return
     */
    String getAllTeachers();

    /**
     * get all Student
     * @return
     */

    List<Map<String,Object>> findAllTeacher();

    /**
     * base on id get teacher information
     * @param tid
     * @return
     */

    Teacher getByTId(int tid);

    /**
     * 'add' teacher
     * @param teacher
     * @return
     */
    int addTea(Teacher teacher);

    /**
     * base on sid 'delete' teacher
     * @param tid
     * @return
     */
    int deleteTea(int tid);

    /**
     * 'update' teacher information
     * @param teacher
     * @return
     */
    int updateTea(Teacher teacher);

    /**
     * 'setence' weather exist teacher or not
     * @param tid
     * @return
     */
    int isHasTea(int tid);
}
